package com.why.dao;

import com.why.entity.ProductEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.why.vo.ProductVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 商品 商品信息相关表：分类表，商品图片表，商品规格表，商品参数表
 * 
 * @author why
 * @email 1585049082@qq.com
 * @date 2021-10-24 20:16:08
 */
@Mapper
public interface ProductDao extends BaseMapper<ProductEntity> {

    List<ProductEntity> selectRecommends(@Param("length") Integer length);

    List<ProductVO> selectTop6ByCategory(int cid);
}
